package com.blb.bookms.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 书籍类型 1:N 书籍
 */
public class BookType implements Serializable{

    private Long id;

    private String name;

    //书籍集合
    private List<Book> books;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Book> getBooks() {
        return books;
    }

    public void setBooks(List<Book> books) {
        this.books = books;
    }

    @Override
    public String toString() {
        return "BookType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
